package com.eversec.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by eversec on 2017/7/10.
 */
@Document(collection="feature_col")
public class FeatureModel implements Serializable{

    //id属性是给mongodb用的，用@Id注解修饰
    @Id
    private String id;

    //@Indexed(unique = true)
    private String md5;

    private int frequency;

    private Date reporttime ;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public Date getReporttime() {
        return reporttime;
    }

    public void setReporttime(Date reporttime) {
        this.reporttime = reporttime;
    }

    @Override
    public String toString() {
        return "FeatureModel{" +
                "id='" + id + '\'' +
                ", md5='" + md5 + '\'' +
                ", frequency=" + frequency +
                ", reporttime=" + reporttime +
                '}';
    }

    public FeatureModel(String md5, int frequency, Date reporttime) {
        this.md5 = md5;
        this.frequency = frequency;
        this.reporttime = reporttime;
    }

    public FeatureModel() {
    }


/*    private String countFrequency ;


    public String getCountFrequency() {
        return countFrequency;
    }

    public void setCountFrequency(String countFrequency) {
        this.countFrequency = countFrequency;
    }*/
}
